from po.base_api import Base_Api


class DisCount(Base_Api):

    def get_discount(self,user_id,coupon_id):
        data = {
            "method":"get",
            "url":self.host + 'zxx/v4/coupon/receive_card',
            "params":{
                "user_id":user_id,
                "coupon_id":coupon_id
            }
        }
        r = self.send(data)
        return r